package com.my.project.eurekaconsumer.controller;

import com.my.project.eurekaconsumer.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: lsg
 * @Date: Created 2018-07-24 11:44
 */
@Controller
@RequestMapping("/user")
public class TestConsumerController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/index")
    @ResponseBody
    public String index(){

        String str = userService.getString();
        return str;
    }
}
